package com.amtf.datafile2.cfg.excel;

import com.amtf.datafile2.cfg.std.StdDataTableDefinition;
import com.amtf.datafile2.core.excel.ExcelDataRecord;

public class ExcelDataTableDefinition extends StdDataTableDefinition<ExcelDataFieldDefinition> {

	public ExcelDataTableDefinition(String name) {
		super(name, ExcelDataRecord.class);
	}

	@Override
	public ExcelDataTableDefinition clone() {
		ExcelDataTableDefinition cloneDef = new ExcelDataTableDefinition(name);
		copyTo(cloneDef);
		return cloneDef;
	}

	public ExcelDataRecord newDataRecordInstance() {
		return new ExcelDataRecord(this);
	}

	@Override
	protected ExcelDataFieldDefinition newDataFieldDefinition(String columnName) {
		return new ExcelDataFieldDefinition(columnName);
	}
}
